<?php
include  __DIR__.'/common/common.php';//修改
$uid=(int)($_POST['uid']);
$phone=(int)($_POST['phone']);
$login_name=addslashes($_POST['login_name']);
$mailbox=addslashes($_POST['mailbox']);
$role=addslashes($_POST['role']);
$sql="UPDATE `users_login` SET phone=$phone,login_name='$login_name',mailbox='$mailbox',role='$role' WHERE uid=$uid";
$bool=mysqli_query($mysql,$sql);
if ($bool)
{
    echo 'ok';
}